<#include "/freemarker/frame.ftl"> 
<@frame title="系统参数信息管理" isMain=false>
<script type="text/javascript" charset="utf-8">
	 $(document).ready(function() { 
	      
	    /* Add events */
	    $('#dataTable tbody tr').live('click', function () { 
	        var sTitle; 
	        var nTds = $('td', this); 
	        var text = $(nTds[2]).text(); 
	        var code = $(nTds[1]).text(); 
	        component.dialog.returnValue(text,code); 
	    } ); 
	} );
	
	function refresh(){
		window.location.reload();
	}
	
	function add(obj){
		jQuery('#add_param_form').ajaxSubmit({
			success:refresh
		});
	}
</script>
<input type="hidden" name="returnValueID" id="returnValueID" value="${request.getParameter('value_id')!}" />
<input type="hidden" name="returnValueText" id="returnValueText" value="${request.getParameter('text_id')!}" />
<!--
         <div class="contentcontainer">
            <div class="headings altheading">
                <h2>系统参数新增</h2>
            </div>
            <div class="contentbox">
		     <@s.form id="add_param_form" action="addParam" method="get" namespace="/mgr/sys" theme="simple">
  						<table><tr><td>
						<strong>描述:</strong> 
						</td><td>
						<@s.textfield cssClass="inputbox smallbox"  name="param.desc" label="描述" ></@s.textfield>
						</td><td>
						<strong>编码:</strong>
						</td><td>
						 <@s.textfield cssClass="inputbox smallbox" name="param.code" label="编码"></@s.textfield>
						</td><td>
                    	<select name="type.id" >
                    	<#list service.queryParaTypes() as type>
                        	<option value="${type.id}">${type.desc}</option>
                        </#list>
                        </select>
						</td><td>
						<input type="button" class="btn" value="增加" onclick="javascript:add(this)"/>
						</td><td></tr></table>
	</@s.form>
	</div>
	</div>
-->	
			<#-- 获取参数列表用于展示 -->
	<#assign heads=["id","名称","类型","编码"] />
	<#assign cols=["id","desc","type.desc","code"] />
	<#assign rows=result.list/>
	<@component.table "系统参数列表" "dataTable" heads rows cols>
     </@component.table>
</@frame>